package com.youhome.service.service.impl;

import com.youhome.service.mapper.HouseFloorPlanMapper;
import com.youhome.service.model.HouseFloorPlan;
import com.youhome.service.service.HouseFloorPlanService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by chen365 on 2019/01/17.
 */
@Service
public class HouseFloorPlanServiceImpl implements HouseFloorPlanService {
    @Autowired
    private HouseFloorPlanMapper houseFloorPlanMapper;

    @Override
    public int deleteByPrimaryKey(Long id) {
        return houseFloorPlanMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(HouseFloorPlan record) {
        return houseFloorPlanMapper.insert(record);
    }

    @Override
    public HouseFloorPlan selectByPrimaryKey(Long id) {
        return houseFloorPlanMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<HouseFloorPlan> selectByHouseId(Long houseId) {
        return houseFloorPlanMapper.selectByHouseId(houseId);
    }
}
